import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import fastclick from 'fastclick'

import '@/assets/stylus/index.styl'

Vue.config.productionTip = false

fastclick.attach(document.body)

if (process.env.NODE_ENV === 'development') {
  new Vue({
    router,
    store,
    render: h => h(App)
  }).$mount('#app')
} else {
  document.addEventListener('plusready', function () {
    new Vue({
      router,
      store,
      render: h => h(App)
    }).$mount('#app')
  })
}
